package com.xinsoft.entity.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 领用出库DTO
 */
@Data
public class ScmConsumingOutstockDTO {

    /**
     * 领用申请id
     */
    private Integer applyId;

    /**
     * 领用申请类型:字典id（生产领用申请10786、委外领用申请10788、其他领用申请10789）
     */
    @NotNull(message = "领用申请类型不能为空")
    private Integer applyTypeId;

    /**
     * 领用申请明细id
     */
    private Integer applyItemId;

    /**
     * 物料ID
     */
    private Integer materialId;

    /**
     * 出库明细
     */
    @Valid
    @NotEmpty(message = "出库明细不能为空")
    List<ErpOutStock> erpOutStockList;

}
